$(document).ready(
    function(){
        document.getElementById("userName").focus();
    });